<link href="../addons/jy_merch/css/style.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../addons/jy_merch/css/common.css?v=2016063000">
<div class="fui-page page-merch-list">
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="access_json('/index/')"></a>
        </div>
        <div class="title">全部分类</div>
        <div class="fui-header-right"></div>
    </div>
    <div class="fui-content" style="bottom: 2.4rem">
      
        <div class="fui-icon-group col-4 noborder">
            
            <a  ng-repeat="item in pagedata.list" class="fui-icon-col external"  ng-click="access_json('/merchuser//cateid='+item.id)">
                <div class="icon">
                    <img src="{{tomedia(item.image)}}"/>
                </div>
                <div class="text">{{item.catename}}</div>
            </a>
            
        </div>
       
    </div>
    
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script type="text/javascript">
scope.loading = true;

var page = 1;
function getlist(){

		var params = {
					'plugin':'jy_merch',
					'action':'category',
					'op':'list',
					'data':{
						'page':page,
						
					},
					'callback':function(data){
							if(data.error !=1){
							 for (var i=0;i<data.list.length;i++){
									scope.pagedata.list.push(data.list[i]);
								}
								if(page >1){
									$("#noborder").animate({scrollTop:0},300);
								}
								page++;
								scope.loading = false;
								window.scope.pagedata.list=data.list;
								scope.$apply();
							}else{
								onsole.log('error');
							};
					}
		}
		scope.post_json(params);
}

   
</script>